package com.derive.education_service.web.agent.sevice;

import com.derive.education_service.common.global.ResponseMessage;
import com.derive.education_service.entity.Agent;
import com.derive.education_service.entity.User;
import com.derive.education_service.web.agent.bean.dto.AgentAddDto;
import com.derive.education_service.web.agent.bean.dto.AgentUpDto;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 代理模式联系方式管理
 */
@Component
public interface AgentService {
    // 获取成为管理员和教学点负责人名单 -- 不分页
    List<User> getUserAgentBy();

    // 添加负责人/代理联系方式 -- 唯一(需要检验是否已存在记录)
    ResponseMessage addAgent(MultipartFile file, AgentAddDto agentAddDto);

    // 删除负责人联系方式
    ResponseMessage delAgent(int agentId);

    // 编辑代理联系方式信息
    ResponseMessage upAgent(MultipartFile file, AgentUpDto agentUpDto);

    // 查看代理联系详情信息
    ResponseMessage getAgentByOpenId(String openId);
}
